#!/usr/bin/env python
#-*- coding: utf-8 -*-

from fabric.api import *
from fabric.colors import *
from fabric.contrib.files import *
from fabric.context_managers import *
from fabric.contrib.console import confirm

env.abort_on_prompts=True

env.hosts=[${hosts}]
env.passwords = {${passwords}}

# 构建
def upload():
    with lcd('${projectPath}'):
        print red("path:${projectPath}")
        put('${fileName}','${remoteDir}/${fileName}')
        run('${cmd}')
